﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace BlueMonkey.View
{
    /// <summary>
    /// Interaction logic for WindowView.xaml
    /// </summary>
    public partial class WindowView : Window
    {
        public WindowView()
        {
            InitializeComponent();
            videoPlayer1.Media = new BlueCore.MediaObject() { Path = @"C:\Users\Likhit\Downloads\[WindSky-Fs] Magi 2 - The Kingdom of Magic - 01 (TBS 1280x720 x264 AAC).mp4" };
            videoPlayer1.OnStop += new EventHandler(videoPlayer1_OnStop);
        }

        void videoPlayer1_OnStop(object sender, EventArgs e)
        {
            MessageBox.Show("stop");
            //throw new NotImplementedException();
        }

        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            videoPlayer1.Stop();
        }
    }
}
